package com.springboot.rigger.modules.entity;

public enum JifenType {


    ACCUMULATE("累计积分", 1),
    ATTRIBUTE("贡献积分", 2),
    GROW_UP("成长积分", 3),
    REACTIVE("互动积分", 5);

    public String name;
    public Integer id;

    JifenType(String name, Integer id) {
        this.id = id;
        this.name = name;
    }

    public static JifenType randomType(JifenType[] values) {
        return values[(int) (Math.random() * values.length)];
    }
}
